package com.eascs.admin.o2o.credit.dao;

import org.springframework.stereotype.Repository;

import com.eascs.admin.common.dao.BaseO2oDao;
import com.eascs.admin.o2o.credit.entity.CreditReport;
@Repository
public class CreditReportDao extends BaseO2oDao{
	/**
	 * 根据loanapplyNo查询出 征信情况
	 * @param loanapplyNo
	 * @return
	 */
	public CreditReport queryLoanapplyNo(String loanapplyNo,String parentId){
		String sql="SELECT * FROM O2O_CREDIT_REPORT T WHERE T.LOANAPPLY_NO=? AND T.PARENT_ID=?";
		return this.findEntity(sql, CreditReport.class, loanapplyNo,parentId);
	}
}
